/**
 * API接口配置文件
 */
import HttpCache from '@/common/cache'
import store from '@/store'
import Vue from 'vue'
// let token = store.state.token
let token = HttpCache.get("token")||Vue.prototype.$token
console.log(store.state.token)
module.exports = {
	home : {
		getProductIdByTagId:"/client/Products/getProductIdByTagId?size=M&terminaltype=Mobile&tagId=1521229690507520", // 今日优选 
		getProductIdByTagId2:"/client/Products/getProductIdByTagId?size=M&terminaltype=Mobile&tagId=1674243972485376", // 新鲜好物 
		getProductIdByTagId3:"/client/Products/getProductIdByTagId?size=M&terminaltype=Mobile&tagId=1674243099218176", // TOP单品 
		getProductIdByTagId4:"/client/Products/getProductIdByTagId?size=M&terminaltype=Mobile&tagId=1674244632400128", // 即将上线 
		getProductIdByTagIds:"/client/Products/getProductIdByTagId?size=M&terminaltype=Mobile", // 根据标签查商品 
		getRecommendCartList:"/client/Products/getRecommendCartList?size=M&terminaltype=Mobile", // 猜你喜欢 
		banner:"/api/index/banner",
		getPricePreferentialList:"/api/PricePreferentialService/getPricePreferentialList?size=M&terminaltype=Mobile", //  活动列表
		preferentialAds:"/api/admin/preferentialAds", //  活动装饰
		getTopList:"/api/user/getTopList", //  top图片
		getCollectedBrand:"/api/brand/getCollectedBrand", //  top图片
		getEInvoice:"/client/EInvoices/getEInvoice?size=M&terminaltype=Mobile", //  获取发票
		getTag:"/api/index/getTag", //  标签列表
		
	},
	common:{
		couponlist:"/index/couponlist?size=M&terminaltype=Mobile", // 公共加载商品
		config:"/config/getinfo?size=M&terminaltype=Mobile", // 获取服务端配置
		update:"/config/update?size=M&terminaltype=Mobile", // 检测更新 
	},
	goods:{

		iteminfo:"/client/Products/index?size=M&terminaltype=WECHAT", // 商品详情 加载 
		Comments:"/member/Comments/query?size=M&terminaltype=Mobile", // 评论
		addProductFavorite:"/client/ProductFavorites/addProductFavorite?size=M&terminaltype=Mobile", // 收藏
		delFavoritesByProductId:"/client/ProductFavorites/delFavoritesByProductId?size=M&terminaltype=Mobile", // 取消收藏
		addCarts:"/client/ShoppingCarts/addCarts?size=M&terminaltype=Mobile", // 加入购物车
		orderNow:"/client/ShoppingCarts/orderNow?size=M&terminaltype=Mobile", // 结算前加入购物车(详情立即购买),
		getRelatedProductList:"/promotion/CombinationSalesService/getRelatedProductList?size=M&terminaltype=Mobile"
		
	},
	car:{
		list:"/client/ShoppingCarts/getCartList?size=M&terminaltype=Mobile", //购物车列表
		update:"/client/ShoppingCarts/update?size=M&terminaltype=Mobile", //更新购物车
		GenerateOrderByShoppingCart:"/client/Orders/GenerateOrderByShoppingCart?size=M&terminaltype=Mobile", //结算
		del:"/client/ShoppingCarts/del?size=M&terminaltype=Mobile" //删除购物车
	},
	order:{
		getNewOrder:'/client/Orders/getNewOrder?size=M&terminaltype=Mobile',//订单信息
		submitOrder:'/client/Orders/submitOrder?size=M&terminaltype=Mobile',//提交订单
		getEnablePayTypeList:'/client/Pays/getEnablePayTypeList?size=M&terminaltype=Mobile',//获取支付方式
		buildPayment:'/client/Pay/buildPayment?size=M&terminaltype=Mobile',//支付
		getPostActivityList:'/promotion/PostActivityService/getPostActivityList?size=M&terminaltype=Mobile',//运费信息
		getAvailableCoupon:'/coupon/MemberCouponServer/getAvailableCoupon?size=M&terminaltype=Mobile',//优惠券
		
	},
	address:{
		list:"/member/Members/getMemberAddress?size=M&terminaltype=Mobile", //收货地址列表
		getProvinces:"/client/Regions/getProvinces?size=M&terminaltype=Mobile", //省
		getCitysFromProvince:"/client/Regions/getCitysFromProvince?size=M&terminaltype=Mobile", //市
		getDistrictFromCity:"/client/Regions/getDistrictFromCity?size=M&terminaltype=Mobile", //区
		saveMemberAddress:"/member/Members/saveMemberAddress?size=M&terminaltype=Mobile" //保存/修改地址
	},
	login:{
		logininfo:'/client/MemberLogin/authenticate?size=M&terminaltype=Mobile',
		register:'/member/Register/signUP_getAuthCode?size=M&terminaltype=Mobile',
		reg:'/member/Register/singUp?size=M&terminaltype=Mobile',
		regCode:'/member/Register/retset_getAuthCode',
		checkAuthCode:'/member/Register/reset_checkAuthCode',
		setPassword:'/member/Register/reset_setPassword',
		registerUser:'/api/user/registerUser',
		uLogin:'/api/user/uLogin',
	},
	user:{
		userinfo:'/member/Members/getMemberByToken?size=M&terminaltype=Mobile',
		saveBatch:'/member/Comments/saveBatch?size=M&terminaltype=Mobile',
		tui:'/client/SaleReturns/save?size=M&terminaltype=Mobile',
		tuiList:'/client/SaleReturns/getSaleReturnList?size=M&terminaltype=Mobile',
		tuiMain:'/client/Orders/getReturnDetail?size=M&terminaltype=Mobile',
		wuliu:'/client/Orders/lookExpress?size=M&terminaltype=Mobile',
		ok:'/client/Orders/batchConfirmTake?size=M&terminaltype=Mobile',
		closeoder:'/client/OrderCancelReason/getReasonContentList?size=M&terminaltype=Mobile',
		closeoderOn:'/client/Orders/closeOrder?size=M&terminaltype=Mobile',
		delOder:'/client/Orders/hiddenOrder?size=M&terminaltype=Mobile',
		userinfos:'/member/query/v1?access_token=q4G2bVvZy5ne6KQTUBsxFMS3aphYC7WRuwfkjIAzcd8m1tNE&size=M&terminaltype=Mobile',
		collection:'/client/ProductFavorites/getProductFavorites?size=M&terminaltype=Mobile',
		footprint:'/client/ProductViewHistorys/getHistories?size=M&terminaltype=Mobile',
		getDifBulletins:'/client/Bulletins/getDifBulletins',
		similar:'/promotion/CombinationSalesService/getRelatedProductList?size=M&terminaltype=Mobile',
		// changes:'/orders/batchuploadNew/v1?access_token=q4G2bVvZy5ne6KQTUBsxFMS3aphYC7WRuwfkjIAzcd8m1tNE&size=M&terminaltype=Mobile',
		changes:'/member/modifypassword/v1?access_token=q4G2bVvZy5ne6KQTUBsxFMS3aphYC7WRuwfkjIAzcd8m1tNE&size=M&terminaltype=Mobile',
		userchanges:'/api/score/uApi/type/save',
		// uploadImg:'/client/FileUpload/uploadAvatarWx?size=M&terminaltype=Mobile',
		uploadImg:'/member/uploadheadimg/v1?access_token=q4G2bVvZy5ne6KQTUBsxFMS3aphYC7WRuwfkjIAzcd8m1tNE',
		oder:'/client/orders/getUserOrders?size=M&terminaltype=WECHAT',
		oderPay:'/client/Orders/getDetail?size=M&terminaltype=Mobile',
		userSet:'/member/Members/save?size=M&terminaltype=Mobile&AREAID=1',
		AboutUs:'/AboutUs',
		FeedType:'/FeedType',
		WapPutFile:'/WapPutFile',
		feedback:'/feedback',
		signList:'/api/score/signDays',
		sign:'/api/score/sign',
		signi:'/api/score/weekList',
		UserInfos:'/UserInfo',
		task:'/api/score/taskList',
		deletes:'/client/ProductViewHistorys/delete',
		getUnRemarkDetail:'/client/Orders/getUnRemarkDetail',
		pays:'/cashier/acquiring',
		uploadWx:'/client/FileUpload/uploadWx',
		userInfo:'/api/user/userInfo',
		userSave:'/api/user/userSave',
		userEditPwd:'/api/user/userEditPwd',
		editInvoice:'/api/user/editInvoice',//添加，修改发票信息
		getInvoiceList:'/api/user/getInvoiceList',//发票列表
		getEInvoice:'/client/EInvoices/getEInvoice',//发票列表
		saveEInvoice:'/client/EInvoices/saveEInvoice?size=M&terminaltype=Mobile',//开发票
		pay:'/api/pay/pay',//获取支付配置
		
		

	},
	search:{//搜索
		search:'/client/Products/getProductList?size=M&terminaltype=Mobile',
		searchs:'/client/Products/getProductList?size=M',
		hot:'/client/PopularKeywords/getList?size=M&terminaltype=Mobile',
		
	},
	cate:{//分类

		cate:'/client/ProductClasses/getClasses?size=M&terminaltype=Mobile&containsPointsClasses=true',
		categoryBanner:'/api/index/categoryBanner',
		brand:'/api/brand/brand',

		

	},
	special:{//专题
		category:"/api/topic/category",
		topic:"/api/topic/topic",
		detail:"/api/topic/detail",
		comment:"/api/topic/comment",
		commentDetail:"/api/topic/commentDetail",
		categoryDetail:"/api/topic/categoryDetail",
		addComment:"/api/topic/addComment",
		commentLike:"/api/topic/commentLike",
		topicCollect:"/api/topic/topicCollect",
		categoryTopic:"/api/index/categoryTopic",//分类推荐专题
		checkCollection:"/api/user/checkCollection"//查询是否收藏专题/品牌
	},
	promotion:{
		getPricePreferentialList:"/api/admin/getPricePreferentialList"
	},
	brand:{//品牌
		brand:"/api/brand/brand",
		collection:'/api/user/collection'
	}
	
}